<%--
  Created by IntelliJ IDEA.
  User: ykj
  Date: 16/1/10
  Time: 上午12:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/adminDialog.css"/>
<script charset="utf-8">
    $(function () {
        adminDialog.bindUpdate('product');
        adminDialog.bindUpdateCancel('product');
    });
</script>
<div class="form_div">
    <form id="product_form" class="m_form" method="post">
        <input type="hidden" id="productId" name="product.id" value="${product.id}"/>
        <div class="input_div">
            <label>产品类型:</label>
            <input class="easyui-combobox m_textbox" type="text" id="type" name="product.type_id" value="${product.typeId}"
                   data-options="required:true,valueField:'id',textField:'name',url:'type/productTypes',editable:false,panelHeight:'auto'"/>

        </div>
        <div class="input_div">
            <label>产品名称:</label>
            <input class="easyui-textbox m_textbox" type="text" id="name" name="product.name" value="${product.name}" data-options="required:true"/>

        </div>
        <div class="input_div">
            <label>投资时长:</label>
            <input class="easyui-numberbox m_textbox" type="text" id="needTime" name="product.need_time" value="${product.needTime}" data-options="required:true,suffix:'天'"/>

        </div>
        <div class="input_div">
            <label>年化收益:</label>
            <input class="easyui-numberbox m_textbox" type="text" id="rateReturn" name="product.rate_return" value="${product.rateReturn}"  data-options="required:true,precision:2,max:100,suffix:'%'"/>

        </div>
        <div class="input_div">
            <label>募资总额:</label>
            <input class="easyui-numberbox m_textbox" type="text" id="totalMoney" name="product.total_money" value="${product.totalMoney}" data-options="required:true,precision:2"/>

        </div>
        <div class="input_div">
            <label>已募资金:</label>
            <input class="easyui-numberbox m_textbox" type="text" id="alreadyMoney" name="product.already_money" value="${product.alreadyMoney}" data-options="required:true,precision:2"/>

        </div>
        <div class="input_div">
            <label>担保机构:</label>
            <input class="easyui-textbox m_textbox" type="text" id="guaranteeName" name="product.guarantee_name" value="${product.guaranteeName}" data-options="required:true"/>

        </div>
        <div class="input_div">
            <label>产品合同:</label>
            <input class="easyui-textbox m_textbox" type="text" id="pact" name="product.pact" value="${product.pact}" data-options="required:true"/>

        </div>
        <div class="sub_div">
            <a id="update_btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'">提交</a>
            <a id="cancel_btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'">取消</a>
        </div>
    </form>
</div>